import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from '../../entities/user.entity';
import { UserService } from './user.service';
import { UserPublicController } from './user-public.controller';
import { UserUserController } from './user-user.controller';
import { UserAdminController } from './user-admin.controller';

@Module({
  imports: [TypeOrmModule.forFeature([User])],
  controllers: [
    UserUserController,
    UserAdminController,
    UserPublicController
  ],
  providers: [UserService],
  exports: [UserService, TypeOrmModule.forFeature([User])], // 导出UserRepository
})
export class UserModule {}